package com.xiaohong.seckill.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;

import java.io.Serializable;
import java.util.Date;

import static io.swagger.v3.oas.annotations.media.Schema.AccessMode.READ_ONLY;

@Schema(name = "SeckillGoods")
public class SeckillGoods implements Serializable{

    @TableId(value = "id",type = IdType.AUTO)
    @Schema(description = "",accessMode = READ_ONLY)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
	private Long id;//

    @Schema(description = "spu ID")
    @TableField("sup_id")
	private Long supId;//spu ID

    @Schema(description = "sku ID")
    @TableField("sku_id")
	private Long skuId;//sku ID

    @Schema(description = "标题")
    @TableField("name")
	private String name;//标题

    @Schema(description = "商品图片")
    @TableField("small_pic")
	private String smallPic;//商品图片

    @Schema(description = "原价格")
    @TableField("price")
	private String price;//原价格

    @Schema(description = "秒杀价格")
    @TableField("cost_price")
	private String costPrice;//秒杀价格

    @Schema(description = "添加日期")
    @TableField("create_time")
	private Date createTime;//添加日期

    @Schema(description = "审核日期")
    @TableField("check_time")
	private Date checkTime;//审核日期

    @Schema(description = "审核状态，0未审核，1审核通过，2审核不通过")
    @TableField("status")
	private String status;//审核状态，0未审核，1审核通过，2审核不通过

    @Schema(description = "开始时间")
    @TableField("start_time")
	private Date startTime;//开始时间

    @Schema(description = "结束时间")
    @TableField("end_time")
	private Date endTime;//结束时间

    @Schema(description = "秒杀商品数")
    @TableField("num")
	private Integer num;//秒杀商品数

    @Schema(description = "剩余库存数")
    @TableField("stock_count")
	private Integer stockCount;//剩余库存数

    @Schema(description = "描述")
    @TableField("introduction")
	private String introduction;//描述



	//get方法
	public Long getId() {
		return id;
	}

	//set方法
	public void setId(Long id) {
		this.id = id;
	}
	//get方法
	public Long getSupId() {
		return supId;
	}

	//set方法
	public void setSupId(Long supId) {
		this.supId = supId;
	}
	//get方法
	public Long getSkuId() {
		return skuId;
	}

	//set方法
	public void setSkuId(Long skuId) {
		this.skuId = skuId;
	}
	//get方法
	public String getName() {
		return name;
	}

	//set方法
	public void setName(String name) {
		this.name = name;
	}
	//get方法
	public String getSmallPic() {
		return smallPic;
	}

	//set方法
	public void setSmallPic(String smallPic) {
		this.smallPic = smallPic;
	}
	//get方法
	public String getPrice() {
		return price;
	}

	//set方法
	public void setPrice(String price) {
		this.price = price;
	}
	//get方法
	public String getCostPrice() {
		return costPrice;
	}

	//set方法
	public void setCostPrice(String costPrice) {
		this.costPrice = costPrice;
	}
	//get方法
	public Date getCreateTime() {
		return createTime;
	}

	//set方法
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	//get方法
	public Date getCheckTime() {
		return checkTime;
	}

	//set方法
	public void setCheckTime(Date checkTime) {
		this.checkTime = checkTime;
	}
	//get方法
	public String getStatus() {
		return status;
	}

	//set方法
	public void setStatus(String status) {
		this.status = status;
	}
	//get方法
	public Date getStartTime() {
		return startTime;
	}

	//set方法
	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}
	//get方法
	public Date getEndTime() {
		return endTime;
	}

	//set方法
	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}
	//get方法
	public Integer getNum() {
		return num;
	}

	//set方法
	public void setNum(Integer num) {
		this.num = num;
	}
	//get方法
	public Integer getStockCount() {
		return stockCount;
	}

	//set方法
	public void setStockCount(Integer stockCount) {
		this.stockCount = stockCount;
	}
	//get方法
	public String getIntroduction() {
		return introduction;
	}

	//set方法
	public void setIntroduction(String introduction) {
		this.introduction = introduction;
	}


}
